<template>
	<div id="app" class="app">

		<router-view />
	</div>
</template>

<script>
	export default {
		name: 'App',
		data(){
			return {
				isScale:false
			}
		},
		mounted() {
			// if (this.isMobile()) {
			// 	this.isScale = true;
			// } else {
			// 	this.isScale = false;
			// 	console.log("pc端");
			
			// }
		},
		methods: {
			// 添加判断方法
			isMobile() {
				let flag = navigator.userAgent.match(
					/(phone|pad|pod|iPhone|iPod|ios|iPad|Android|Mobile|BlackBerry|IEMobile|MQQBrowser|JUC|Fennec|wOSBrowser|BrowserNG|WebOS|Symbian|Windows Phone)/i
				)
				// localStorage.setItem('isiphone',flag)
				console.log(flag)
				return flag;
			}

		}
	}
</script>

<style>
	/* #app {
  font-family: 'Avenir', Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-align: center;
  color: #2c3e50;
  margin-top: 60px;
} */

	#app {
		height: 100%;
		width: 100%;
		min-width:1920px;
		min-height:1080px;
		overflow: hidden;
		background: #03016c url(../static/img/yindamen.jpg) center center;
		background-size: 100% 100%;

	}
	
</style>
